﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eassets.Layered.Domain.Global;
using System.Collections.ObjectModel;
using Eassets.Data.Global;

namespace Eassets.Service.Global
{
    public class OrganizationLevelListService
    {
        OrganizationLevelListData organizationLevelListdata = new OrganizationLevelListData();

        /// <summary>
        /// Inserts organizationLevelList.
        /// </summary>
        /// <param name="organizationLevelList"></param>
        public void AddOrganizationLevelList(OrganizationLevelList organizationLevelList)
        {
            if (organizationLevelList != null)
            {
                organizationLevelListdata.AddOrganizationLevelList(organizationLevelList);
            }
        }

        /// <summary>
        /// Updates organizationLevelList.
        /// </summary>
        /// <param name="organizationLevelList"></param>
        public void ModifyOrganizationLevelList(OrganizationLevelList organizationLevelList)
        {
            if (organizationLevelList != null)
            {
                organizationLevelListdata.ModifyOrganizationLevelList(organizationLevelList);
            }
        }

        /// <summary>
        /// Delete organizationLevelList.
        /// </summary>
        /// <param name="organizationLevelListId"></param>
        public void DeleteOrganizationLevelList(long organizationLevelListId)
        {
            if (organizationLevelListId != 0)
            {
                organizationLevelListdata.DeleteOrganizationLevelList(organizationLevelListId);
            }
        }

        /// <summary>
        /// GetbyId organizationLevelList.
        /// </summary>
        /// <param name="organizationLevelListId"></param>
        /// <returns></returns>
        public OrganizationLevelList GetByIdOrganizationLevelList(long organizationLevelListId)
        {
            return organizationLevelListdata.GetByIdOrganizationLevelList(organizationLevelListId);
        }

        /// <summary>
        /// GetAll organizationLevelList.
        /// </summary>
        /// <returns></returns>
        public Collection<OrganizationLevelList> GetAllOrganizationLevelList()
        {
            return organizationLevelListdata.GetAllOrganizationLevelList();
        }
   
    }
}

